StringScanner.ScanToString Function
Syntax
Text as C = ScanToString as C(characters as c)
Arguments
- Text
The text between the starting and ending offset positions.
- characters
A character string to find.
Description
Skip until text matching string is found. Return text we scanned over.
Discussion
The <StringScanner>.ScanToString() function moves the offset to the beginning of Find_Text and returns the text between the starting and ending positions of the offset.
Example
dim scanner as P dim txt as C txt = <<%text% This is wonderful prose written by a technical writer of great merit. %text% scanner = stringscanner.create(txt) ? scanner.ScanToString("writer") = This is wonderful prose written by a technical ? scanner.GetToOffset() = This is wonderful prose written by a technical ? scanner.getremainder() = writer of great merit.
See Also